package com.yizn.learn.concurrent;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yisl
 * @date 2021年03月29日 2:21 下午
 */
public class JConsoleTest {

    static class OomObjec{
        public byte[] objec = new byte[64 * 1024];
    }

    public static void main(String[] args) throws InterruptedException {
        Thread.sleep(20000);
        List<Object> test = new ArrayList<Object>();
        while (true){

            test.add(new OomObjec());
            Thread.sleep(50);

        }
    }


}
